package com.company.design.action.strategy;

/**
 * @author yingfing
 * @create 2020--09--24 8:35
 * @describe
 */
public class Context {
    // 环境角色

    private IStrategy strategy;

    public Context(IStrategy strategy) {
        this.strategy = strategy;
    }

    public void battle() {
        strategy.strategy();
    }
}
